package com.shop.cereshop.agent.dao.wallet;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.agent.page.wallet.AgentWalletVO;
import com.shop.cereshop.agent.param.user.LoginDTO;
import com.shop.cereshop.commons.domain.wallet.CereAgentWallet;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.validation.Valid;

/**
 * 代理商钱包 DAO 接口
 *
 * @author
 * @since 2025-11-14
 */
@Mapper
public interface AgentWalletDAO extends BaseMapper<CereAgentWallet> {

  int updatePayPassword(@Param("param") LoginDTO param);

  AgentWalletVO getWallet(@Param("agentUserId") Long agentUserId, @Param("roleType") Integer roleType);

  AgentWalletVO getAgentIncome(@Param("agentUserId") Long agentUserId);

  AgentWalletVO getAgentTaskIncome(@Param("agentUserId") Long agentUserId);

  AgentWalletVO getRefereeAgentIncome(@Param("agentUserId") Long agentUserId);
}
